package com.zhq.blog.core.domain.system;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import com.zhq.blog.core.domain.BaseRepository;

public interface InformationRepository extends JpaRepository<Information,Long>, BaseRepository<Information>,JpaSpecificationExecutor<Information> {
	
	@Query("select b from Information b where deleted=0  order by id desc  ")
	Page<Information> findAll(Pageable pageable);
}
